function log1(str)
{
    $("#msg").html($("#msg").html()+ str+"<br/>");
}

function update_progress()
{
    var id = $("input[name=APC_UPLOAD_PROGRESS]").val();
    $.getJSON("/users/get_upload?upload_id="+id,
	      function(upload){
		  // log("current: "+upload.current);
		  $("#progressbar").progressbar({value:upload.current*100/upload.total});
	      });
}
function start_upload_monitor()
{
    $("#progress").css("display", "block");
    setInterval(update_progress, 2000);

    return true;
}
